package objects;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Users")
public class User
{
	@Id
	private String userName;
	private Enum<Type> type;
	private boolean isActive;
/*	@OneToMany(targetEntity=UserFriends.class, mappedBy="friendPK.friend", cascade=CascadeType.ALL)
	private List<UserTuple> friends;*/

	public enum Type
    {
        DefaultUser,
        MANAGER,
    }

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public Enum<Type> getType()
	{
		return type;
	}

	public void setType(Enum<Type> type)
	{
		this.type = type;
	}

	public boolean isActive()
	{
		return isActive;
	}

	public void setActive(boolean isActive)
	{
		this.isActive = isActive;
	}

	@Override
	public String toString()
	{
		return "User [userName=" + userName + "]";
	}

/*	public List<UserTuple> getFriends()
	{
		return friends;
	}

	public void setFriends(List<UserTuple> friends)
	{
		this.friends = friends;
	}*/


}
